package com.platform.service;

import com.platform.dao.ApiShopMapper;
import com.platform.entity.OpenShopVo;
import com.platform.entity.ShopVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ApiShopService {
    @Autowired
    private ApiShopMapper shopDao;

    public List<ShopVo> queryShopList(Integer buildingId, String type) {
        return shopDao.queryShopList(buildingId,type);
    }

    public ShopVo queryByUserId(Integer userId) {
        return shopDao.queryByUserId(userId);
    }

    public ShopVo queryById(Integer shopId) {
        return shopDao.queryById(shopId);
    }

    public int openShop(OpenShopVo openShopVo) {
        return shopDao.openShop(openShopVo);
    }

    public int motifyShopInfo(ShopVo shopVo) {
        return shopDao.motifyShopInfo(shopVo);
    }
}
